<?php


namespace app\common\validate;


use think\Validate;

class Mine extends Validate
{
    protected $rule=[
        'nickname|昵称'=>'require|min:1|max:20',
    ];
    protected $message=[
        'nickname.require'=>'请输入昵称',
        'nickname.min'=>'昵称不能小于1个字符',
        'nickname.max'=>'昵称不能大于20个字符',
    ];
    protected $scene=[
        'edit_info'=>['nickname'],
    ];
}